﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPagePrivate.master" autoeventwireup="true" inherits="Pages_Private_ChangePassword, BtcHousing" stylesheettheme="ServerControls" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Change Password</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>

    <div class="GroupBox">
        <div class="GroupHeaderOverlay">Password Info</div>
        <table cellpadding="3" cellspacing="0" style="width:60%;">
            <colgroup>
                <col style="width:35%;" />
                <col />
            </colgroup>
            <tr>
                <td>Old Password</td>
                <td>
                    <asp:TextBox ID="txtOldPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvOldPassword" runat="server"
                        Display="Dynamic" SetFocusOnError="true"
                        ValidationGroup="SaveInfo" ControlToValidate="txtOldPassword"
                        ErrorMessage="Enter the Old Password.">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>New Password</td>
                <td>
                    <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                        Display="Dynamic" SetFocusOnError="true"
                        ValidationGroup="SaveInfo" ControlToValidate="txtNewPassword"
                        ErrorMessage="Enter the New Password.">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Confirm Password</td>
                <td>
                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                        Display="Dynamic" SetFocusOnError="true"
                        ValidationGroup="SaveInfo" ControlToValidate="txtConfirmPassword"
                        ErrorMessage="Pelase Confirm the New Password.">
                    </asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="RequiredFieldValidator3" runat="server"
                        Display="Dynamic" SetFocusOnError="true"
                        ValidationGroup="SaveInfo" Operator="Equal" 
                        ControlToCompare="txtNewPassword"
                        ControlToValidate="txtConfirmPassword"
                        ErrorMessage="Two Passwords does not match.">
                    </asp:CompareValidator>
                </td>
            </tr>
        </table>
    </div>
    
    <div style="margin-top:10px;">
        <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />
    </div>
</asp:Content>

